---------------------------------------------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  /Users/wesleyblundell/Dropbox/Wes_Supplemental_NEI/JAERE_Replication/Replication_package/log/Table_A10_Results.log
  log type:  text
 opened on:  15 May 2024, 11:48:17

. ///This is the different quartiles and quintiles comp. 
> eststo clear

. use "$rootpath/processed_data/Estimation_Data.dta", clear

. drop if key_estimation_sample==0
(273,947 observations deleted)

. sort facility_id year

. egen num_obs=nvals(year), by(facility_id)

. 
. reghdfe  log_tot_damage_WONOXSOX treatXpost, absorb(facility_id n5#year) vce(cluster facility_id)
(MWFE estimator converged in 243 iterations)

HDFE Linear regression                            Number of obs   =    699,013
Absorbing 2 HDFE groups                           F(   1,  81431) =      39.81
Statistics robust to heteroskedasticity           Prob > F        =     0.0000
                                                  R-squared       =     0.9330
                                                  Adj R-squared   =     0.9234
                                                  Within R-sq.    =     0.0002
Number of clusters (facility_id) =     81,432     Root MSE        =     0.3174

                       (Std. Err. adjusted for 81,432 clusters in facility_id)
------------------------------------------------------------------------------
             |               Robust
l~e_WONOXSOX |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  treatXpost |  -.0536306      .0085    -6.31   0.000    -.0702905   -.0369707
       _cons |   .6412734   .0014567   440.23   0.000     .6384184    .6441285
------------------------------------------------------------------------------

Absorbed degrees of freedom:
-----------------------------------------------------+
 Absorbed FE | Categories  - Redundant  = Num. Coefs |
-------------+---------------------------------------|
 facility_id |     81432       81432           0    *|
     n5#year |      6834           1        6833     |
-----------------------------------------------------+
* = FE nested within cluster; treated as redundant for DoF computation

. estimates store robust_wo_damage

. 
. reghdfe  log_emis_WONOXSOX treatXpost, absorb(facility_id n5#year) vce(cluster facility_id)
(MWFE estimator converged in 247 iterations)

HDFE Linear regression                            Number of obs   =    699,013
Absorbing 2 HDFE groups                           F(   1,  81431) =      39.34
Statistics robust to heteroskedasticity           Prob > F        =     0.0000
                                                  R-squared       =     0.9312
                                                  Adj R-squared   =     0.9213
                                                  Within R-sq.    =     0.0002
Number of clusters (facility_id) =     81,432     Root MSE        =     0.2507

                       (Std. Err. adjusted for 81,432 clusters in facility_id)
------------------------------------------------------------------------------
             |               Robust
l~s_WONOXSOX |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  treatXpost |   -.044223   .0070511    -6.27   0.000    -.0580431    -.030403
       _cons |   .4857203   .0012084   401.97   0.000     .4833519    .4880887
------------------------------------------------------------------------------

Absorbed degrees of freedom:
-----------------------------------------------------+
 Absorbed FE | Categories  - Redundant  = Num. Coefs |
-------------+---------------------------------------|
 facility_id |     81432       81432           0    *|
     n5#year |      6834           1        6833     |
-----------------------------------------------------+
* = FE nested within cluster; treated as redundant for DoF computation

. estimates store robust_wo_emission

. 
. reghdfe  log_tot_damage_WINOXSOX treatXpost, absorb(facility_id n5#year) vce(cluster facility_id)
(MWFE estimator converged in 249 iterations)

HDFE Linear regression                            Number of obs   =    699,013
Absorbing 2 HDFE groups                           F(   1,  81431) =      34.97
Statistics robust to heteroskedasticity           Prob > F        =     0.0000
                                                  R-squared       =     0.9373
                                                  Adj R-squared   =     0.9282
                                                  Within R-sq.    =     0.0002
Number of clusters (facility_id) =     81,432     Root MSE        =     0.2980

                       (Std. Err. adjusted for 81,432 clusters in facility_id)
------------------------------------------------------------------------------
             |               Robust
l~e_WINOXSOX |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  treatXpost |  -.0506063   .0085574    -5.91   0.000    -.0673789   -.0338338
       _cons |   .5066581   .0014665   345.48   0.000     .5037837    .5095324
------------------------------------------------------------------------------

Absorbed degrees of freedom:
-----------------------------------------------------+
 Absorbed FE | Categories  - Redundant  = Num. Coefs |
-------------+---------------------------------------|
 facility_id |     81432       81432           0    *|
     n5#year |      6834           1        6833     |
-----------------------------------------------------+
* = FE nested within cluster; treated as redundant for DoF computation

. estimates store robust_wi_damage

. 
. reghdfe  log_emis_WINOXSOX treatXpost, absorb(facility_id n5#year) vce(cluster facility_id)
(MWFE estimator converged in 247 iterations)

HDFE Linear regression                            Number of obs   =    699,013
Absorbing 2 HDFE groups                           F(   1,  81431) =      50.07
Statistics robust to heteroskedasticity           Prob > F        =     0.0000
                                                  R-squared       =     0.9410
                                                  Adj R-squared   =     0.9324
                                                  Within R-sq.    =     0.0003
Number of clusters (facility_id) =     81,432     Root MSE        =     0.2570

                       (Std. Err. adjusted for 81,432 clusters in facility_id)
------------------------------------------------------------------------------
             |               Robust
l~s_WINOXSOX |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  treatXpost |  -.0544292   .0076919    -7.08   0.000    -.0695052   -.0393532
       _cons |   .4250094   .0013182   322.42   0.000     .4224258     .427593
------------------------------------------------------------------------------

Absorbed degrees of freedom:
-----------------------------------------------------+
 Absorbed FE | Categories  - Redundant  = Num. Coefs |
-------------+---------------------------------------|
 facility_id |     81432       81432           0    *|
     n5#year |      6834           1        6833     |
-----------------------------------------------------+
* = FE nested within cluster; treated as redundant for DoF computation

. estimates store robust_wi_emission

. 
. esttab robust_wo_damage robust_wi_damage robust_wo_emission robust_wi_emission using "$rootpath/table_graph/TBL_A10.tex",  star( * 0.1 ** 0.05 *** 0.01
> ) cells(b(star fmt(3)) se(par fmt(3))) keep(treatXpost _cons) scalars(N F) ar2 replace 
(note: file /Users/wesleyblundell/Dropbox/Wes_Supplemental_NEI/JAERE_Replication/Replication_package/table_graph/TBL_A10.tex not found)
(output written to /Users/wesleyblundell/Dropbox/Wes_Supplemental_NEI/JAERE_Replication/Replication_package/table_graph/TBL_A10.tex)

. log close
      name:  <unnamed>
       log:  /Users/wesleyblundell/Dropbox/Wes_Supplemental_NEI/JAERE_Replication/Replication_package/log/Table_A10_Results.log
  log type:  text
 closed on:  15 May 2024, 11:50:17
---------------------------------------------------------------------------------------------------------------------------------------------------------
